package com.meme.io.packager;

import com.meme.editor.level.*;

import java.io.RandomAccessFile;

import org.apache.log4j.Logger;

import com.meme.util.FileUtil;

public class LevelBinFileWriter 
{
	static Logger logger = Logger.getLogger(LevelBinFileWriter.class);

	
	public void writeToFile (LevelFile levelFile, String filename)
	{	
		try
		{
			FileUtil.deleteFile (filename);
			
			RandomAccessFile binFile = new RandomAccessFile (filename, "w");
			
			writeLevelFile (levelFile, binFile);
		}
		catch (Exception e)
		{
			e.printStackTrace();
		}
	}
	
	
	void writeLevelFile (LevelFile levelFile, RandomAccessFile binFile) throws Exception
	{
		
	}
}
